@extends("admin.layout.main")

@section("content")
    <div class="row">
        <div class="col-xs-12">
            <div class="error-container">
                <div class="well">
                    <h1 class="grey lighter smaller">
						<span class="blue bigger-125">
							<i class="ace-icon fa fa-exclamation-circle"></i>
							无权限
						</span>
                    </h1>
                    <hr>
                    <h3 class="lighter smaller">
                        对不起，您无此权限！
                    </h3>
                    <div>
                        <h4>（<span id="second">5</span>秒后返回上一页）</h4>
                    </div>
                    <hr>
                    <div class="space"></div>
                    <div class="center">
                        <a href="javascript:history.back()" class="btn btn-grey">
                            <i class="ace-icon fa fa-arrow-left"></i>
                            返回
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        $(document).ready(function () {
            setTimeout(function () {
                history.back();
            }, 5000);
            var wait = 5;
            timeOut();

            function timeOut() {
                setTimeout(function () {
                    wait--;
                    $('#second').html(wait);
                    timeOut();
                }, 1000)
            }
        });
    </script>
@endsection
